Skip to main content
POST
/
audiences
/
attributes
/
bulk-add
Create multiple audience attributes
curl --request POST \
  --url https://your_a2_service/audiences/attributes/bulk-add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "code": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "name": "<string>",
    "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "updated_at": "2023-11-07T05:31:56Z",
    "visibility": "public"
  }
]'
"<any>"

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json ยท AudienceAttributeCreateSchema ยท object[]
code
string
required

Code representing the audience attribute.

This code serves as a key for properties in both AudienceSegment and Audience.

Required string length: 1 - 32
name
string
required

Name of the audience attribute

owner_id
string<uuid>
required

Owner ID of the audience attribute

visibility
enum<string>
required

Visibility of the audience attribute

Available options:
public,
private
created_at
string<date-time> | null

The date and time the entity was created.

description
string | null

Description of the audience attribute

updated_at
string<date-time> | null

The date and time the entity was last updated.

Response

Successful Response

The response is of type any.